import {customeStruct} from '../utils';
const itf = customeStruct.interface;

export const InitDataStruct = itf({
    payload: itf({
        content: [itf(Object.assign({
            id: 'string',
        }))],
    })
});

const defaultProps = {
    id: 'string',
    code: 'string',
    status: 'number',
    remark: 'string? | null',
};

export const List = itf({
    payload: itf({
        content: [itf(Object.assign({
            options: ['string'],
            rowVersion: 'string? | null'
        }, defaultProps))],
        totalElements: 'number',
    })
});

export const SelectList = itf({
    payload: itf({
        content: [itf(Object.assign({
            id: 'string',
        }))],
    })
});
